]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Export STARTUP_ANIMATION_TIME
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 25 Nov 2025 21:40:00 +0000 (22:40 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 27 Nov 2025 10:42:29 +0000 (10:42 +0000)
We are using it in overviewControls but the value is not exported.

This caused an issue when the animations are not enabled, since in a
racy way (e.g. only sometimes, depending on the init speed) the value
was undefined, and so we ended up falling back to the default animation
duration time.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3982>

js/ui/layout.js

index a13ba6205a2db7edfa6fc93c22358cf37ddf2829..3e4f4b8f534081a31b16c1e7069fa40d73575397 100644 (file)
@@ -16,7 +16,7 @@ import * as Main from './main.js';
 import * as Params from '../misc/params.js';
 import * as Ripples from './ripples.js';
 
-const STARTUP_ANIMATION_TIME = 500;
+export const STARTUP_ANIMATION_TIME = 500;
 const BACKGROUND_FADE_ANIMATION_TIME = 1000;
 
 const HOT_CORNER_PRESSURE_THRESHOLD = 100; // pixels